var redis = require("redis");

var config = {
	port : 6379,
    host : "aliyun327.kuick.cn",
    auth_pass : "dd14f29806334c33:dmsRedis1234",
    db: 3
}

var myRedis = redis.createClient(config.port, config.host, config);
myRedis.select(4);

myRedis.on("error", function(err){
	console.log(err);
});

myRedis.publish("pub:test:data1", "huangshangbin");

console.log("publish complete");







//myRedis.on("message", function(pub_name, message){
//	console.log(message);
//});

//myRedis.subscribe("test:data1");